using System.Collections.Generic;
using CLELCore.Assembly.CLELInstructions;

namespace opt.Analysis.Graph.ControlFlowGraph
{
	public class CFGNodeInfo
	{
		private List<CLELInstruction> _code;
		private int _start_instruction_index;

		public List<CLELInstruction> Code
		{
			get
			{
				return _code;
			}
			set
			{
				_code = value;
			}
		}
		public int CodeCount
		{
			get
			{
				if(_code == null)
					return 0;
				return _code.Count;
			}
		}
		public int StartInstructionIndex
		{
			get
			{
				return _start_instruction_index;
			}
			set
			{
				_start_instruction_index = value;
			}
		}

		public CFGNodeInfo()
		{
		}
	}
}
